from tkinter import *
x = int(input())
y = int(input())
k = int(input())
coord = [x, y,
         10 * k + x, y,
         10 * k + x, 10 * k + y,
         20 * k + x, 10 * k + y,
         20 * k + x, 30 * k + y,
         10 * k + x, 30 * k + y,
         10 * k + x, 20 * k + y,
         x, 20 * k + y]
if x >= 0 and y >= 0 and x <= 500 and y <= 500 and 20 * k + x >= 0 and 30 * k + y >= 0 and 20 * k + x <= 500 and 30 * k + y <= 500:
    master = Tk()
    master.geometry('500x500')
    canvas = Canvas(bg='grey', width=500, height=500)
    canvas.pack()
    canvas.create_polygon(coord, fill='blue')
    mainloop()
else:
    print('Размер фигуры превышает максимальный размер поля')